package com.sakiko.audiobook.album.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sakiko.audiobook.model.album.BaseAttribute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseAttributeMapper extends BaseMapper<BaseAttribute> {


    List<BaseAttribute> selectBaseAttributeList(@Param("category1Id") Long category1Id);

    /**
     * 根据一级分类 id查询属性集合
     *
     * @param category1Id
     * @return List<BaseAttribute>
     */
    List<BaseAttribute> selectAttributeByCategory1Id(@Param("category1Id") Long category1Id);
}
